package com.company.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.project.entity.SysRole;
import com.company.project.entity.SysUser;
import com.company.project.entity.TSeatsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.project.vo.req.TSeatsEntityOperationReqVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author wenbin
 * @email *****@mail.com
 * @date 2023-10-12 08:44:53
 */
public interface TSeatsMapper extends BaseMapper<TSeatsEntity> {

    IPage<TSeatsEntity> pageData(Page page, @Param("vo") TSeatsEntityOperationReqVO vo, @Param("sysUser") SysUser sysUser,@Param("roleName")  String roleName);

    void deleteUsers(@Param("ids") List<String> ids);

    void updateSta(@Param("ids")List<String> ids, @Param("number")String number);

    void updateStaUser(@Param("ids")List<String> ids,@Param("number") String number);

    Integer selectIsStatus(@Param("sysUser") SysUser sysUser);

    Integer selectSeatCount(@Param("corporatename") String corporatename);

    List<String> selectCorp(@Param("user") SysUser sysUser);

    List<TSeatsEntity> selectFzscz();

    Integer selectData(@Param("user") String user,@Param("type")  String type,@Param("role0")  String role0,@Param("role1")  String role1);

    Integer selectCountByUser(@Param("user") String user,@Param("dept")  String deptNo);

    int getSeq(@Param("seq")  String callSequence);

    void updateByCorporatename(@Param("corporatename")  String corporatename,@Param("xhfzs")  Integer xhfzs);

    void deleteUsersZjh(@Param("ids")List<String> ids);

    SysUser selectUserById(@Param("id") String id);

    List<SysRole> selectRoleByUserId(@Param("id")String id);
}
